package org.example.myleet.p689;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[0,3,5]".equals(JsonUtils.toJson(solution.maxSumOfThreeSubarrays(new int[]{1,2,1,2,6,7,5,1}, 2))));
        Assert.isTrue("[1,3,5]".equals(JsonUtils.toJson(solution.maxSumOfThreeSubarrays(new int[]{1,2,2,2,6,7,5,1}, 2))));
        Assert.isTrue("[0,2,4]".equals(JsonUtils.toJson(solution.maxSumOfThreeSubarrays(new int[]{1,2,1,2,1,2,1,2,1}, 2))));
        Assert.isTrue("[4,5,7]".equals(JsonUtils.toJson(solution.maxSumOfThreeSubarrays(new int[]{4,5,10,6,11,17,4,11,1,3}, 1))));
    }
}
